﻿@model LeadMaster.Models.LeadGroups

@using (Ajax.BeginForm(
    "EditLeadGroup", "LeadBuilder", null,
    new AjaxOptions
    {
        HttpMethod = "Post",
        UpdateTargetId = "ShowLeadGroups"
    }, new { @id = "formEditLeadGroup" }))
{
    @Html.ValidationSummary(true)

    <fieldset>
        <legend>Edit Group Title</legend>

        @Html.HiddenFor(model => model.LeadTemplateID)
        @Html.HiddenFor(model => model.LeadGroupsID)

        <table class="formtable" cellspacing="0" cellpadding="0">
        <tr style="vertical-align: middle" valign="middle">
        <th style="width: 100px; vertical-align:middle; text-align: left;">
            @Html.LabelFor(model => model.Title, "Title", new { style = "vertical-align:middle;" })
        </th>
        <td style="vertical-align: middle; padding-top: 10px;">
            @Html.TextBoxFor(model => model.Title, new {@class="largetextbox"})
            @Html.ValidationMessageFor(model => model.Title)
        </td>
        </tr>
        <tr style="vertical-align: middle" valign="middle">
        <th style="width: 100px; vertical-align:middle; text-align: left;">
            @Html.LabelFor(model => model.MinMandatoryPrimary, "Min Mandatory Primary", new { style = "vertical-align:middle;" })
        </th>
        <td style="vertical-align: middle; padding-top: 10px;">
            @Html.TextBoxFor(model => model.MinMandatoryPrimary)
            @Html.ValidationMessageFor(model => model.MinMandatoryPrimary)
        </td>
        </tr>
        <tr style="vertical-align: middle" valign="middle">
        <th style="width: 100px; vertical-align:middle; text-align: left;">
            @Html.LabelFor(model => model.MinMandatorySecondary, "Min Mandatory Secondary", new { style = "vertical-align:middle;" })
        </th>
        <td style="vertical-align: middle; padding-top: 10px;">
            @Html.TextBoxFor(model => model.MinMandatorySecondary)
            @Html.ValidationMessageFor(model => model.MinMandatorySecondary)
        </td>
        </tr>
        <tr style="vertical-align: middle" valign="middle">
        <th style="width: 100px; vertical-align:middle; text-align: left;">
            @Html.LabelFor(model => model.QualifyingGroup, "Qualifying Group", new { style = "vertical-align:middle;" })
        </th>
        <td style="vertical-align: middle; padding-top: 10px;">
            <input type="checkbox" name="QualifyingGroup" id="QualifyingGroup" value="true" 
                @if(Model.QualifyingGroup==true)
                {
                @: checked   
                }
            />
            @Html.ValidationMessageFor(model => model.QualifyingGroup)
        </td>
        </tr>
        <tr style="vertical-align: middle" valign="middle">
        <th style="width: 100px; vertical-align:middle; text-align: left;">
            @Html.LabelFor(model => model.Notes, "Caller script note", new { style = "vertical-align:middle;" })
        </th>
        <td style="vertical-align: middle; padding-top: 10px;">
            @Html.TextAreaFor(model => model.Notes, new { @class="notes"})
            @Html.ValidationMessageFor(model => model.Notes)
        </td>
        </tr>
		<tr>
        <th style="width: 100px; vertical-align:middle; text-align: left;">
            @Html.LabelFor(model => model.BackgroundColour, "Background Colour", new { style = "vertical-align:middle;" })
        </th>
        <td>
            @Html.TextBoxFor(model => model.BackgroundColour)
        </td>
        </tr>
        <tr>
        <th style="width: 100px; vertical-align:middle; text-align: left;">
            @Html.LabelFor(model => model.DisplayOrder, "Display Order", new { style = "vertical-align:middle;" })
        </th>
        <td>
            @Html.TextBoxFor(model => model.DisplayOrder)
        </td>
        </tr>
        <tr>
        <th style="width: 100px; vertical-align:middle; text-align: left;">
            @Html.LabelFor(model => model.QuestionOrder, "Questionnaire Order", new { style = "vertical-align:middle;" })
        </th>
        <td>
            @Html.TextBoxFor(model => model.QuestionOrder)
        </td>
        </tr>

        </table>
    </fieldset>
}

<script type="text/javascript">
    $().ready(function () {

    });
</script>